<%@page import="com.portal4kids.model.Party"%>
<%@page import="com.portal4kids.model.Holidays"%>
<%@page import="com.portal4kids.model.Travel"%>
<%@page import="com.portal4kids.model.ServicesAdditional"%>
<%@page import="com.portal4kids.model.ServicesTheaterScout"%>
<%@page import="com.portal4kids.model.ServicesMusic"%>
<%@page import="com.portal4kids.model.ServicesLanguage"%>
<%@page import="com.portal4kids.model.ServicesArt"%>
<%@page import="com.portal4kids.model.ServicesSport"%>
<%@page import="com.portal4kids.model.People"%>
<%@page import="com.portal4kids.model.Places"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Portal4kids</title>
<link rel="stylesheet" href="ap.css">
</head>
<body>
<div id="top">
   
    <img src="images/kreska.png" class="kreska">
    <div class="header_txt">
      <p class="header_txt_1">Panel Administracyjny</p>
      <p class="header_txt_2">portal 4 kids</p>
    </div>
    <div class="session">
      <div class="session2">
        przycisk wyloguj
      </div>
    </div>
    <ul id=menu>
      
    <li><s:a action="addPlace">+Dodaj Miejsce+ </s:a></li>
	<li><s:a action="goToAddPeople">Dodaj Ludzi</s:a></li>
	<li><s:a action="goToAddServices">Dodaj Usługi</s:a></li>
	<li><s:a action="goToAddParty">Dodaj imprezę</s:a></li>
	<li><s:a action="goToAddTravel">Dodaj Biuro Podróży</s:a></li>
	<li><s:a action="goToEditInfo">Informacje</s:a></li>
	<li><s:a action="goToAddHoliday">Dodaj Wakacje</s:a></li> 
      
    </ul>
    
    <div id=kategorie>
    <% 
    	if(request.getAttribute("place") != null){
    		Places place = (Places)request.getAttribute("place"); 
        	String album = place.getId_place() +  "PlaceProfilowe.jpg";
        	session.setAttribute("album", album);
    	}
    
   	 	if(request.getAttribute("people") != null){
   	 		People people = (People)request.getAttribute("people");
   	 		String album = people.getId_people() + "PeopleProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   	 	
   		 if(request.getAttribute("party") != null){
	 		Party party = (Party)request.getAttribute("party");
	 		String album = party.getId_party() + "PartyProfilowe.jpg";
	 		session.setAttribute("album", album);
	 	}
   		 
   		if(request.getAttribute("sports") != null){
   	 		ServicesSport sport = (ServicesSport)request.getAttribute("sports");
   	 		String album = sport.getId_sport() + "SportProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("art") != null){
   	 		ServicesArt art = (ServicesArt)request.getAttribute("art");
   	 		String album = art.getId_art() + "ArtProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("language") != null){
   	 		ServicesLanguage language = (ServicesLanguage)request.getAttribute("language");
   	 		String album = language.getId_language() + "LanguageProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("music") != null){
   	 		ServicesMusic music = (ServicesMusic)request.getAttribute("music");
   	 		String album = music.getId_music() + "MusicProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("t_s") != null){
   	 		ServicesTheaterScout t_s = (ServicesTheaterScout)request.getAttribute("t_s");
   	 		String album = t_s.getId_service() + "T_SProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("additional") != null){
   	 		ServicesAdditional additional = (ServicesAdditional)request.getAttribute("additional");
   	 		String album = additional.getId_service() + "AdditionalProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("travel") != null){
   	 		Travel travel = (Travel)request.getAttribute("travel");
   	 		String album = travel.getId_travel() + "TravelProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
   		
   		if(request.getAttribute("holiday") != null){
   	 		Holidays holiday = (Holidays)request.getAttribute("holiday");
   	 		String album = holiday.getId_holidays() + "HolidayProfilowe.jpg";
   	 		session.setAttribute("album", album);
   	 	}
    	
    %>
<h2>Dodaj zdjęcie profilowe</h2> </br>

	<fieldset>
        <legend>Wybierz zdjecia z dysku:</legend><br />
        <form action="Upload" method="post" enctype="multipart/form-data">
        	
        	
        			<label for="filename">Zdjecie: </label>
            		<input id="filename" type="file" name="filename" accept="image/jpeg,image/gif" size="50" /><br/>
            <br/>
            <input type="submit" value="Załaduj zdjecia"/>
        </form>
    </fieldset>
    <br/><br/>
    <h5 style="font-style: italic;">Po kliknięciu w 'Załaduj zdjęcia' rozpocznie się wgrywanie plików. Po skończeniu tej operacji zostaniesz
    automatycznie przeniesiony do następnej strony.</h5>
 </div>
 </div>
</body>
</html>